package com.wonder.app.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.wonder.app.domain.PrdReturn;
import com.wonder.app.domain.SfcOptrpt;
import com.wonder.app.domain.SfcOptrptPackage;
import com.wonder.app.request.PrdReturnRequest;

import java.util.List;
import java.util.Map;

public interface PrdReturnService extends IService<PrdReturn>{

    /**
     * 工序汇报分页
     * @param prdReturnRequest
     * @param page
     * @return
     */
    public  IPage<PrdReturn> selectList(PrdReturnRequest prdReturnRequest, Page<PrdReturn> page);
    /**
     * 详情Stkotherout
     * @param map
     * @return
     */
    Map<String, Object> getPrdReturnDetail(Map<String, Object> map);


    Map<String, Object> getPrdReturnList(Map<String, Object> map);

    Boolean addPrdReturnDetail(Long user_id,Map<String, Object> map) throws Exception;

    Map<String, Object> getPrdReturnTemp(Map<String, Object> map, Long user_id);

    Boolean deleteReturnDetailTemp(String userName, Map<String, Object> map);

    Boolean createReturnBill(String userName, Map<String, Object> map) throws Exception;

    Boolean createReturnBillPackage(Long user_id, String userName, SfcOptrptPackage sfcOptrptPackage, String type,String kingdeeNo)throws Exception;
}
